import fileinput
import re
#for line in fileinput.input(sys.argv[1:]):

def resize_area(amount):
	if re.search("rect",elements[1]):
		new4='coords="'+str(int(int(coordinates[0])*amount))+","+str(int(int(coordinates[1])*amount))+","+str(int(int(coordinates[2])*amount))+","+str(int(int(coordinates[3])*amount))+'"'
		# print elements[0],elements[1],elements[2],elements[3],new4,elements[5],elements[6],elements[7]
	else:
		new4='coords="'+str(int(int(coordinates[0])*amount))+","+str(int(int(coordinates[1])*amount))+","+str(int(int(coordinates[2])*amount))+'"'
	elements[4]=new4
		# print elements[0],elements[1],elements[2],elements[3],new4,elements[5],elements[6],elements[7]


for line in fileinput.input("input.txt"):
	elements=line.split()
	coords=elements[4]
	coordinates=((coords.split('"'))[1]).split(",")

	resize_area(.60)
	
	href= (elements[5].split('"'))[1]
	title = href.split('?')[1]
	elements[5]='href="#"'
	#elements[8]=elements[7]
	elements.append('onClick="areaclick(id)"')
	elements.append(elements[7])
	elements[7]='id="'+title+'"'
	elements[3]='title="'+title+'"'
	print elements[0],elements[1],elements[2],elements[3],elements[4],elements[5],elements[6],elements[7],elements[8],elements[9]
